package com.kehutong.charge.entity;

import com.kehutong.common.entity.DataEntity;
import org.coraframework.json.annotation.JSONField;
import org.coraframework.orm.annotation.Column;
import org.coraframework.orm.annotation.Table;
import org.coraframework.orm.annotation.UnSave;
import org.coraframework.orm.util.IDType;

import java.math.BigDecimal;

/**
 * @program: kht
 * @description: ChargeTypeConfig
 * @author: joneron
 * @create: 2021/6/22
 **/
@Table(value="t_charge_type_config", comment="收费类型配置表",multi = true, idType = IDType.TIMESTAMP, engine = "innodb")
public class ChargeTypeConfig  extends DataEntity {

    protected ChargeTypeConfig(String id) {
        super(id);
    }

    @Column(comment="收费类型名称")
    private String feeTypeName;

    @Column(comment="收费项目数")
    private int projectNum;

    @Column(comment="仪表类型id")
    private String meterTypeNo;

    @Column(comment="仪表类型名称")
    private String meterTypeName;

    @Column(comment="计量比例%")
    private BigDecimal scaleRatio;

    @Column(comment = "状态：0禁用，1启用")
    private boolean status;

    @Column(comment = "排序")
    private Integer sort;

    @JSONField(serialize = false)
    @Column(comment = "逻辑删除")
    private boolean deleted;

    @Column(comment = "创建人")
    private String createName;

    @Column(comment="小区编号")
    private String communityNo;

    @Column(comment="小区名称")
    private String communityName;

    @Column(comment = "是否初始化数据")
    private boolean initData;

    @UnSave
    private MeterTypeConfig meterTypeConfig;

    public String getMeterTypeNo() {
        return meterTypeNo;
    }

    public void setMeterTypeNo(String meterTypeNo) {
        this.meterTypeNo = meterTypeNo;
    }

    public String getFeeTypeName() {
        return feeTypeName;
    }

    public void setFeeTypeName(String feeTypeName) {
        this.feeTypeName = feeTypeName;
    }

    public int getProjectNum() {
        return projectNum;
    }

    public void setProjectNum(int projectNum) {
        this.projectNum = projectNum;
    }

    public boolean isStatus() {
        return status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public boolean isDeleted() {
        return deleted;
    }

    public void setDeleted(boolean deleted) {
        this.deleted = deleted;
    }

    public String getCreateName() {
        return createName;
    }

    public void setCreateName(String createName) {
        this.createName = createName;
    }


    public String getCommunityNo() {
        return communityNo;
    }

    public void setCommunityNo(String communityNo) {
        this.communityNo = communityNo;
    }

    public String getCommunityName() {
        return communityName;
    }

    public void setCommunityName(String communityName) {
        this.communityName = communityName;
    }

    public String getMeterTypeName() {
        return meterTypeName;
    }

    public void setMeterTypeName(String meterTypeName) {
        this.meterTypeName = meterTypeName;
    }

    public BigDecimal getScaleRatio() {
        return scaleRatio;
    }

    public void setScaleRatio(BigDecimal scaleRatio) {
        this.scaleRatio = scaleRatio;
    }

    public MeterTypeConfig getMeterTypeConfig() {
        return meterTypeConfig;
    }

    public void setMeterTypeConfig(MeterTypeConfig meterTypeConfig) {
        this.meterTypeConfig = meterTypeConfig;
    }

    public boolean isInitData() {
        return initData;
    }

    public void setInitData(boolean initData) {
        this.initData = initData;
    }
}
